<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="extensions_exampleworkflow_manage_Default" %>
<%@ Register TagPrefix="flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Admin/Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />

	<script language="javascript">
	function ConfirmDelete()
	{
		if( confirm("Are you sure you want to delete this entry?")) return true;
		return false;
	}
	</script>
</head>
<body class="nopad">
<form id="form1" runat="server">
<flux:HostTable runat="server">

<flux:CollapseSection runat="server" Expanded="true" Title="Record Navigation" id="PagerSection" WithFooter="false">
	<flux:DataPager runat="server" ID="datapager" linkgrid="datagrid"/>
</flux:CollapseSection>

<flux:Section runat="server" Title="Data">
<flux:StandardDataGrid runat="server" ID="datagrid" DataKeyField="PK_ID" ClickRowSelect="False">
	<Columns>
		<asp:BoundColumn DataField="Name" ReadOnly="True" HeaderText="Name"></asp:BoundColumn>
		<asp:BoundColumn DataField="Tel" ReadOnly="True" HeaderText="Tel"></asp:BoundColumn>
		<asp:TemplateColumn HeaderText="Options">
		<ItemTemplate>
			<asp:LinkButton Runat="server" ID="btnEdit" CssClass="SafeLink" CommandName="Edit">Edit</asp:LinkButton>
			<asp:LinkButton Runat="server" ID="btnDelete" CssClass="DangerLink" CommandName="Delete">Delete</asp:LinkButton>
		</ItemTemplate>
	</asp:TemplateColumn>
	</Columns>
</flux:StandardDataGrid>
</flux:Section>

<flux:Section runat="server">
<flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button Runat="server" CssClass="button" ID="btnAddNew" Text="Add new entry" OnClick="btnAddNew_Click"/>
</flux:PadBox>
</flux:Section>

</flux:HostTable>
</form>
</body>
</html>
